// API响应基础类型
export interface ApiResponse<T = any> {
  code: number
  message: string
  data: T
  timestamp: number
}

// 登录请求类型
export interface LoginRequest {
  username: string
  password: string
}

// 用户信息类型
export interface UserInfo {
  id: number
  username: string
  nickname: string
  email: string
  phone: string
  avatar: string
  status: number
  userType: number
  lastLoginTime: string
  lastLoginIp: string
  roles: string[]
  permissions: string[]
}

// 用户类型
export interface User {
  id?: number
  username: string
  password?: string
  nickname: string
  email: string
  phone: string
  avatar: string
  status: number
  userType: number
  lastLoginTime?: string
  lastLoginIp?: string
  createTime?: string
  updateTime?: string
}